<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form method="post">
    {% csrf_token %}
    <p>名字<input type="text" name="name"> </p>
    <p>价格<input type="text" name="price"> </p>
    <p>数量<input type="text" name="number"> </p>

        <p>
            <select name="brand">
                {% for foo in brand %}
                    <option value="{{ foo.id }}">{{ foo.name }}</option>
                {% endfor %}
            </select>
        </p>
    <input type="submit" value="提交">
</form>

</body>
</html>